<?php
namespace app\admin\model;
use think\Model;
use think\Db;
class withdrawModel extends Model{
    public function type(){
        $type = [
            1=>'会员提现',
            2=>'股东提现',
            3=>'代理金提现',
            4=>'红包提现',
            5=>'商家提现',
            6=>'内部提现',
            7=>'一级代理提现',
        ];
        return $type;
    }
    public function put_type(){
        return $list['put_type'] = [1=>'支付宝',2=>'微信',3=>'银行卡'];
    }
    public function status(){
        return $list['status'] = [1=>'待审核',2=>'提现成功',3=>'提现失败',4=>'取消'];
    }
    public function dataname($list = []){
        $put_type = self::put_type();
        $status = self::status();
        foreach ($list as &$v){
            $v['put_type_name'] = $put_type[$v['put_type']];
            $v['status_name'] = $status[$v['status']];
        }
        return $list;
    }
}